import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * @author zhaoqian
 * @create 2021/8/30 15:39
 */
public class fama {
    public static void main(String[] args) {  //转英文
        Scanner in = new Scanner(System.in);
       while (in.hasNext()){
           long i = in.nextLong();
           System.out.println(test(i));
       }
    }
    private static String test(Long l){
        String num = String.format("%09d", l);
        StringBuilder sb = new StringBuilder();
        String[] unit={"billion","million","thousand","hundred"};
        sb.append(num.charAt(0)).append(" ").append(unit[0]).append(" ").append("and").append(" ");
        sb.append(num.charAt(2)).append(" ").append(unit[1]).append(" ").append("and").append(" ");
        sb.append(num.charAt(5)).append(" ").append(unit[2]).append(" ").append("and").append(" ");
        sb.append(num.charAt(6)).append(" ").append(unit[3]).append(" ");

        String replace = sb.toString().replace("1", "one").replace("2", "two").replace("3", "three")
                .replace("4", "four").replace("5", "five").replace("6", "six")
                .replace("7", "seven").replace("8", "eight").replace("9", "nine");
        return replace;
    }
    /*{
        Map<String, String> maps = new HashMap<String, String>();
        maps.put("0", "zero");
        maps.put("9", "nine");
        maps.put("8", "eight");
        maps.put("7", "seven");
        maps.put("6", "six");
        maps.put("5", "five");
        maps.put("4", "fore");
        maps.put("3", "three");
        maps.put("2", "two");
        maps.put("1", "one");
        maps.put("亿", "yi");


        StringBuilder result = new StringBuilder();
        String[] units = {"billion", "", "","million", "", "", "thousand", "hundred", "",""};
        String num = String.format("%09d", i);
        char[] nums = num.toCharArray();
        int flag = 0;
        for(int j=0; j<nums.length; j++) {
            if ('0' != nums[j]) {
                flag = 0;
                result.append(nums[j]).append(units[j]);
                continue;
            }
            if ('0' == nums[j] && flag < 1) {
                flag++;
                result.append(nums[j]).append(units[j]);
                continue;
            }
        }
       String  amt= result.toString();
        String replace = amt.replaceAll("0", "").replace("1", "one").replace("2", "two").replace("3", "three")
                .replace("4", "four").replace("5", "five").replace("6", "six")
                .replace("7", "seven").replace("8", "eight").replace("9", "nine");
        return replace;
    }*/
}
